GBML manual / Paths

path_point_count

How many points a path has.

Syntax

path_point_count(p) -> int

Arguments

NameType
ppath

Returns

int

Description

How many points a path has - the drawn control points an author placed in the editor's own Paths tab, not the extra points smoothing samples in at build time.

Example

var points = path_point_count(path_doc_patrol);

Reads how many control points path_doc_patrol was authored with.

See also: path_point_xpath_point_y